@echo off
rem releaseDir must have \ at the end!
set ANT_ARGS=-q -e -DreleaseDir=Y:\DokuWiki\releases\
if "%1"=="" goto thehelp
if "%1"=="jalbum" goto jalbum
if "%1"=="itrackviewer" goto itrackviewer
if "%1"=="hcalendar" goto hcalendar
if "%1"=="reliwa" goto reliwa
if "%1"=="blogr" goto blogr
if "%1"=="toursprung" goto toursprung
if "%1"=="gmsdisplayer" goto gmsdisplayer
if "%1"=="routenplaner" goto routenplaner
if "%1"=="geogebra" goto geogebra
if "%1"=="panorama" goto panorama
if "%1"=="zirkelundlineal" goto zul
if "%1"=="zul" goto zul
if "%1"=="qrcode" goto qrcode
if "%1"=="bahnde" goto bahnde
if "%1"=="geodevideo" goto geodevideo
if "%1"=="userfly" goto userfly
if "%1"=="docbook2" goto docbook2
if "%1"=="spreadshirt" goto spreadshirt
if "%1"=="vcd_umweltpraemie" goto vcd_umweltpraemie
if "%1"=="xslt_proc" goto xsltproc
if "%1"=="xsltproc" goto xsltproc
if "%1"=="winkfile" goto winkfile
if "%1"=="WikiPedia" goto wikipedia
if "%1"=="co2calc" goto co_calc
if "%1"=="grclip" goto grclip
goto thehelp
rem if "%1"=="" goto 
rem **********************************************************************************
:winkfile
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./winkfile -Dname=winkfile
goto finish

rem **********************************************************************************
:xslt_proc
:xsltproc
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./xsltproc -Dname=xsltproc
goto finish

rem **********************************************************************************
:vcd_umweltpraemie
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./vcd_umweltpraemie -Dname=vcd_umweltpraemie
goto finish

rem **********************************************************************************
:jalbum
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./jalbum -Dname=jalbum
goto finish

rem **********************************************************************************
:itrackviewer
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./itrackviewer -Dname=itrackviewer
goto finish

rem **********************************************************************************
::call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./vcard -Dname=h_vcard
goto finish

rem **********************************************************************************
:hcalendar
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./hcalendar -Dname=hcalendar
goto finish

rem **********************************************************************************
:reliwa
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./reliwa -Dname=reliwa
goto finish

rem **********************************************************************************
:blogr
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./blogr -Dname=blogr
goto finish

rem **********************************************************************************
:toursprung
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./toursprung -Dname=toursprung
goto finish

rem **********************************************************************************
:gmsdisplayer
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./gmsdisplayer -Dname=gmsdisplayer
goto finish

rem **********************************************************************************
:routenplaner
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./routenplaner -Dname=routenplaner
goto finish

rem **********************************************************************************
:geogebra
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./geogebra -Dname=geogebra
goto finish

rem **********************************************************************************
:panorama
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./panorama -Dname=panorama
goto finish

rem **********************************************************************************
:zul
:zirkelundlineal
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./zul -Dname=zirkelundlineal
goto finish

rem **********************************************************************************
:qrcode
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./qrcode -Dname=qrcode
goto finish

rem **********************************************************************************
:bahnde
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./bahnde -Dname=bahnde
goto finish

rem **********************************************************************************
:fabchannel
rem obsolete +:: call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./fabchannel -Dname=fabchannel -Dversion=0.0.2a
goto finish

rem **********************************************************************************
:geodevideo
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./geodevideo -Dname=geodevideo
goto finish

rem **********************************************************************************
:userfly
::not longer supported call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./userfly -Dname=userfly
goto finish

rem **********************************************************************************
:docbook2
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./docbook2 -Dname=docbook2
goto finish

rem **********************************************************************************
:spreadshirt
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./spreadshirt -Dname=spreadshirt
goto finish

rem **********************************************************************************
:wikipedia
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./WikiPedia -Dname=wikipedia
goto finish

rem **********************************************************************************
:co_calc
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./co2calc -Dname=co2calc
goto finish

rem **********************************************************************************
:grclip
call ant %ANT_ARGS% createArchive -f build.xml -DbaseDir=./grclip -Dname=grclip
goto finish

:thehelp
echo Usage: create 'Package'
echo Package are:
echo 	jalbum
echo 	itrackviewer
echo 	hcalendar
echo 	reliwa
echo 	blogr
echo 	toursprung
echo 	gmsdisplayer
echo 	routenplaner
echo 	geogebra
echo 	panorama
echo 	zul
echo 	qrcode
echo 	bahnde
echo 	geodevideo
echo 	spreadshirt
echo 	docbook2
echo 	vcd_umweltpraemie
echo 	xsltproc
echo 	winkfile
echo 	WikiPedia
echo	co2calc
goto finish

:finish
pause
